﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Logoned.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Chowpoo.Util" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    学习进程
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <% Html.RenderPartial("TopUc"); %>
        <% Html.RenderPartial("NavUc", 6); %>
        <% Html.RenderPartial("SupportNavUc", ViewData["type"].CheckInt(0)); %>
    </table>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="200" align="center" valign="top" class="contentBackImg">
                <table width="950" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="28" align="left" background="<%=ResolveUrl("~/Content/images/5_01_1.gif")%>">
                            <table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="22">
                                    </td>
                                    <td width="677">
                                        <div align="left">
                                            <span class="style10">学习进程</span>
                                        </div>
                                    </td>
                                    <td width="146">
                                        &nbsp;
                                    </td>
                                    <td width="102">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top" background="<%=ResolveUrl("~/Content/images/5_02_1.gif")%>">
                            <table width="944" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="13" bgcolor="#FFFFFF">
                                        <% var item = LearnProcessBLL.GetLast(UserHelper.Student.Id); if (item != null)
                                           {%>
                                        (上次退出)最后学习章节:<%= item.LastSection %>
                                        时间:<%= item.EndTime.ToString("yyyy-MM-dd HH:mm") %>
                                        <% } %>
                                        总在线时数:<%=StudentBLL.Get(UserHelper.Student.Id).OnlineTime/60%>小时
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" bgcolor="#FFFFFF" id="listDiv">
                                        <% Html.RenderAction("ProcessListUc"); %>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="13" bgcolor="#FFFFFF">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="3" background="<%=ResolveUrl("~/Content/images/5_04_1.gif")%>">
                        </td>
                    </tr>
                </table>
                <table width="1000" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="editDiv" title="浏览学习章节">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#editDiv").dialog({
                autoOpen: false,
                height: 300,
                width: 450,
                modal: true,
                close: function () {
                }
            });
        });

        var editClickA = function (id) {
            $("#editDiv").html("loading...");
            $("#editDiv").load(appRoot + 'Support/ProcessViewUc/' + id + '?trd=' + rdTime());
            $("#editDiv").dialog("open");
        };

    </script>
</asp:Content>
